import request from "@/utils/request";
export function insertCategory(data) {
  return request({
    url: "/commerce-category/insert",
    method: "post",
    data: data
  });
}
export function updateCategory(data) {
  return request({
    url: "/commerce-category/update",
    method: "post",
    data: data
  });
}
export function deleteCategory(data) {
  return request({
    url: "/commerce-category/delete",
    method: "post",
    data: data
  });
}
export function deletesCategory(data) {
  return request({
    url: "/commerce-category/deletes",
    method: "post",
    data: data
  });
}
export function enableCategory(data) {
  return request({
    url: "/commerce-category/enable",
    method: "post",
    data: data
  });
}
export function enablesCategory(data) {
  return request({
    url: "/commerce-category/enables",
    method: "post",
    data: data
  });
}
export function disableCategory(data) {
  return request({
    url: "/commerce-category/disable",
    method: "post",
    data: data
  });
}
export function disablesCategory(data) {
  return request({
    url: "/commerce-category/disables",
    method: "post",
    data: data
  });
}
export function upCategory(data) {
  return request({
    url: "/commerce-category/up",
    method: "post",
    data: data
  });
}
export function upsCategory(data) {
  return request({
    url: "/commerce-category/ups",
    method: "post",
    data: data
  });
}
export function downCategory(data) {
  return request({
    url: "/commerce-category/down",
    method: "post",
    data: data
  });
}
export function downsCategory(data) {
  return request({
    url: "/commerce-category/downs",
    method: "post",
    data: data
  });
}
export function viewCategory(params) {
  return request({
    url: "/commerce-category/view",
    method: "get",
    params: params
  });
}
export function pageCategory(params) {
  return request({
    url: "/commerce-category/page",
    method: "get",
    params: params
  });
}
export function searchCategory(params) {
  return request({
    url: "/commerce-category/search",
    method: "get",
    params: params
  });
}
